<?php
require_once("class.member.php");
require_once("class.db.jeegoon.php");
function GetMemberByName($UserName)
{
	if(is_string($UserName))
	{
		$sh1 = new jeegoon();
		$result = $sh1->query("select * from member where ID='0020';");
		$arr=array();
		$i=0;
		while ($line = mysql_fetch_array($result, MYSQL_BOTH)) {
			$arr[$i]=$line;
			$i++;
                }
	
		$mb = new Member();
		$mb->ID = $arr[0][1];
                $mb->Name = $arr[0][0];
                $mb->Vendor = $arr[0][6];
                $mb->Status = $arr[0][5];		
		return $mb;	

/*
		$res =array(
		'ID'=>$arr[0][1],
		'Name'=>$arr[0][0],
		'Vendor'=>$arr[0][6],
		'Status'=>$arr[0][5]
		);

                return array($res);
*/	
	}
	else
	{
		return new soap_falut('client','','GetMemberByName Error!');
	}
}
?>
